package com.tfjybj.itoo.exam.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import java.io.Serializable;

/**
 * @param user
 * @Author: judy
 * @Description:
 * @Date: Created in 15:10 2018/12/5
 */

/**
 * @author 王雪芬
 * @version 2.0.0
 * @since 2.0.0 2018-12-05 12:55:53
 */
@ApiModel(value = "PaperOnlineRecordModel:答题记录表")
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
public class PaperOnlineRecordModel implements Serializable {

    /**
     * 考生id
     */
    @ApiModelProperty(value = "考生id")
    @Column(name = "examineeId")
    private String examineeId;
    /**
     * 模板id
     */
    @ApiModelProperty(value = "模板id")
    @Column(name = "templateId")
    private String templateId;


    /**
     * 考试id
     */
    @ApiModelProperty(value = "考试表主键")
    @Column(name = "examinationId")
    private String examinationId;

    /**
     * 答题记录id
     */
    @ApiModelProperty(value = "答题记录id")
    @Column(name = "paperRecordId")
    private String paperRecordId;

    /**
     * 题型id
     */
    @ApiModelProperty(value = "题型表主键")
    @Column(name = "questionTypeId")
    private String questionTypeId;

    /**
     * 题id
     */
    @ApiModelProperty(value = "question表主键")
    @Column(name = "questionMainId")
    private String questionMainId;

    @ApiModelProperty(value = "业务题个数", example = "0")
    @Column(name = "optionCount")
    private Integer optionCount;
    /**
     * 题型名称
     */
    @ApiModelProperty(value = "题型名称")
    @Column(name = "typeName")
    private String typeName;

    /**
     * 标准分数
     */
    @ApiModelProperty(value = "标准分数")
    @Column(name = "standardScore")
    private double standardScore;

    /**
     * 漏选分数
     */
    @ApiModelProperty(value = "漏选分数")
    @Column(name = "messingPointsScore")
    private double messingPointsScore;

    /**
     * 学生答案
     */
    @ApiModelProperty(value = "学生答案")
    @Column(name = "studentAnswerArray")
    private String[] studentAnswerArray;

    /**
     * 学生答案判分需要
     */
    @ApiModelProperty(value = "学生答案")
    @Column(name = "studentAnswerS")
    private String studentAnswerS;

    /**
     * 存学生答案
     */
    @ApiModelProperty(value = "存学生答案")
    @Column(name = "studentAnswerOnline")
    private String studentAnswerOnline;

    /**
     * 学生html答案
     */
    @ApiModelProperty(value = "学生html答案")
    @Column(name = "studentAnswerHtml")
    private String studentAnswerHtml;


    /**
     * code
     */
    @ApiModelProperty(value = "code")
    @Column(name = "questionCode")
    private String questionCode;

    /**
     * 侯旭日添加属性，用于questionId被删除也抽到试题情况（开发测试生产同一个redis）
     */
    private Boolean state;

    /**
     * 学生得分
     */
    private Double score;

    /**
     * 得到是否更新数据库
     */
    private Boolean isUpdate = false;
}
